package com.sync.data.ievent.repository;


import com.sync.data.ievent.entity.IeventBasePositionEmployee;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 * @author liquanchang
 */
@Repository
public interface IeventBasePositionEmployeeRepository extends JpaRepository<IeventBasePositionEmployee, String>, JpaSpecificationExecutor<IeventBasePositionEmployee>{
    boolean existsByPositionCodeAndEmpCode(String positionCode, String empCode);

    IeventBasePositionEmployee getByPositionCodeAndEmpCode(String positionCode, String empCode);
}
